package com.hs.service;

import com.github.pagehelper.PageInfo;
import com.hs.entity.Answer;

import java.util.List;

public interface AnswerService {
    int addAnswer(Answer answer);
    int deleteAnswer(int id);
    int updateAnswer(Answer answer);
    Answer getAnswerById(int id);
    PageInfo<Answer> getAnswerByPage(int pageNum, int pageSize);
}
